<?php
session_start();
require('class/auth.php');
include_once('class/autoload.php'); // pour inclure nos classes

if(Auth::islog()){
}else{
	header('Location:index.php');
}

$mail=$_GET['mail'];
$coordonneeseleve = new page_eleve($mail);


$site = new page_securiser('acceuil');


$site->titre = "Appartement";
$site->corps='<span id="bouton_retour"><input type="button" value="Retour aux annonce" onclick="location.href=\'acceuil.php\';"></span>';





$site->affiche();
?>
<script language="javascript">
function ChangeImage(url)
{
document.getElementById('img').src = url;
}


	
	</script> 
<div class="text_coordonnees">
<ul>
<span class="puce"><li>Nom: <?php echo $coordonneeseleve->nom ?></li></span>
<span class="puce"><li>Prenom: <?php echo $coordonneeseleve->prenom ?></li></span>
<span class="puce"><li>Adresse e-mail: <?php echo $coordonneeseleve->mail ?></li></span>
<span class="puce"><li>Numero de telephone: <?php echo $coordonneeseleve->tel ?></li></span>


<input type="button" value="Modifier" onclick="location.href='modifcoordonneeseleve.php?mail=<?php echo $mail ?>';"><br><br><br><br><br><br>

<span class="puce"><li>Mot de passe : **********</li></span></ul>
<input type="button" value="Changer votre mot de passe" onclick="location.href='modifmotdepasse.php?mail=<?php echo $mail ?>';"><br><br><br><br><br><br>

</div>

<img  id='img' class='imageprincipal' src=<?php $_SERVER['HTTP_ORIGIN'] ?>/images/<?php echo $coordonneeseleve->url1 ?>.jpg  alt=''/>




<?php 
$site->footer();

